package com.woniu.presell.service.impl;

import com.woniu.presell.entity.Floor;
import com.woniu.presell.entity.Storey;
import com.woniu.presell.mapper.StoreyMapper;
import com.woniu.presell.service.StoreyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: house-after
 * @description:
 * @author: qqq
 * @create: 2022-12-14 23:16
 **/
@Service
public class StoreyServiceImpl implements StoreyService {
    @Autowired
    private StoreyMapper storeyMapper;
    @Override
    public List insertSelective(List<Floor> flist) {
//        List<Storey> list=new ArrayList<>();
//        for(int i=0;i<flist.size();i++){
//            for(int j=1;j<=flist.size();j++){
//                Storey storey=new Storey();
//                storey.setStoreyNo(j+"");
//                storey.setFloorId(flist.get(i).getFloorId());
//                list.add(storey);
//            }
//        }
//        storeyMapper.myinsert(list);
        return null;
    }
}
